package lab02.test09;

public class Student {

  int num;

  int classes;

  String name;

  String sex;

  int age;



        int getNum(){

            return num ;

         }

   String getName(){

             return name;

           }

  int getClasses() {

            return classes;

        }

  String getSex(){

           return sex;

        }

  int getAge(){



                 return age;

      }

   String tostring(){



       System.out.println("学生学号为："+this.getNum()+"  学生姓名为："+this.getName()+ " 班级号码为："+this.getClasses()+" 性别："+this.getSex()+" 年龄： "+this.getAge());

          return "";

        }

}